﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HpxWMS_Api.CustomExcption
{
    /// <summary>
    /// 错误提示
    /// </summary>
    public class BusinessException:Exception
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        public BusinessException(string code,string message)
        {
            Code = code;    
            Message = message;
        }
    }
}